// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import Vuex from 'vuex'
import App from './App'
import router from './router'
import axios from './lib/service/index.js'

import MintUI from 'mint-ui'
import 'mint-ui/lib/style.css'
import Vant from 'vant';
import 'vant/lib/index.css';
import md5 from 'js-md5';
import './lib/StringExtend.js'
import Filters from './lib/Filters';
import store from './lib/store/Store.js'

Vue.use(Vuex);
Vue.use(Filters);
Vue.use(MintUI);
Vue.use(Vant);
Vue.prototype.$axios = axios;
Vue.prototype.$md5 = md5;
Vue.config.productionTip = false;

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  watch:{
    $route(to,from){
      console.log(to.path);
    }
  },
  components: { App },
  template: '<App/>'
})
